package day6.Exer;

import java.util.Calendar;

public class Exer3 {
    public static void main(String[] args) {
        Calendar time=Calendar.getInstance();
        time.set(2022,10-1,1);
        String[]a={"星期日","星期一","星期二","星期三","星期四","星期五","星期六"};
        String week=a[time.get(Calendar.DAY_OF_WEEK)-1];
        System.out.println("国庆节这天是："+week);
    }
}
